package com.blockmeta.bbs.immodule.net.api;

import com.blockmeta.bbs.businesslibrary.net.pojo.BaseImResponse;

import io.reactivex.Flowable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * @author AirThor
 * @date 2019/4/15.
 */
public interface ShieldUserApi {
    /**
     * 屏蔽用户消息
     * @see "https://gitee.com/btc8/appserver/wikis/IM?sort_id=1348722#38-%E7%94%B3%E8%AF%B7%E5%8A%A0%E5%A5%BD%E5%8F%8B-useraddfriends-get"
     * @param shield_user_id 要屏蔽的人的ID
     * @return
     */
    @FormUrlEncoded
    @POST("im/chatUser/shield")
    Flowable<BaseImResponse<Object>> shieldUser(@Field("shield_user_id") long shield_user_id, @Field("shield") boolean shield);
}
